import javax.swing.*;

public class ButtonTest extends JFrame {

	public ButtonTest() {
		JPanel jp = new JPanel();
		JButton submit  = new JButton("Ok");
		JButton cancel = new JButton("Cancel");
		submit.setSize(20, 10);
		cancel.setSize(20, 10);
		
		jp.add(submit);
		jp.add(cancel);
		setSize(300, 300);
		setVisible(true);
		setTitle("Button");
		add(jp);
	}

	public static void main(String[] args) {
		ButtonTest bt = new ButtonTest();

	}

}
